﻿using System;
using System.Collections.Generic;
using System.Text;
using Mighty.Brain;
using Mighty.Common;
using System.Windows.Forms;
using System.Threading;

namespace Mighty.PlayingBoard
{
    public class PlayerConnector : Connector
    {
        public PlayingBoard playingBoard { get; set; }
        public AIConnector aiConnector { get; set; }

        public PlayerConnector(int p) : base(p)
        {
        }

        override public void SetGameInfo(GameInfo g)
        {
            playingBoard.iVisual.SetGameInfo(g);
        }

        override protected Object RequestInvoke()
        {
            return playingBoard.iVisual.Visualize(threadActualStatus, position);
        }
    }
}
